from django.conf.urls.defaults import *

from titiaccount.app.account import views

urlpatterns = patterns('',
    url(r"^$", views.index, name="index"),
    url(r"^list$", views.list, name="list"),
    url(r"^new$", views.new, name="new"),
    url(r"^edit$", views.edit, name="edit"),
    url(r"^delete$", views.delete, name="delete"),
    url(r"^\d+/reset_amount$", views.reset_amount, name="reset_amount"),

    url(r"^\d+/$", views.trans_list, name="list"),
    url(r"^\d+/transaction/$", views.trans_list, name="list"),
    url(r"^\d+/transaction/list$", views.trans_list, name="list"),
    url(r"^\d+/transaction/list/page/\d+$", views.trans_list, name="list"),
    url(r"^\d+/transaction/new$", views.trans_new, name="new"),
    url(r"^\d+/transaction/\d+/edit$", views.trans_edit, name="edit"),
    url(r"^\d+/transaction/\d+/delete$", views.trans_delete, name="delete"),
    url(r"^\d+/transaction/\d+/favorite_on$", views.trans_favorite_on, name="favorite_on"),
    url(r"^\d+/transaction/\d+/favorite_off$", views.trans_favorite_off, name="favorite_off"),

    url(r"^\d+/tag/\d+/$", views.trans_list, name="list"),
    url(r"^\d+/tag/\d+/transaction/list/page/\d+$", views.trans_list, name="list"),
    url(r"^\d+/tag/\d+/transaction/new$", views.trans_new, name="new"),
    url(r"^\d+/tag/\d+/transaction/\d+/edit$", views.trans_edit, name="edit"),
    url(r"^\d+/tag/\d+/transaction/\d+/delete$", views.trans_delete, name="delete"),

    url(r"^transaction/list$", views.trans_list, name="list"),
    url(r"^transaction/list/tag/\d+/$", views.trans_list, name="list"),

	url(r'^report/', include('titiaccount.app.account.report.urls')),
)

